package com.newshub.app.ui.profile

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.widget.TextView
import android.view.MenuItem

class AboutActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(android.R.layout.simple_list_item_1)
        
        val versionTextView = findViewById<TextView>(android.R.id.text1)
        versionTextView.text = "版本 1.0.0"
        
        supportActionBar?.setDisplayHomeAsUpEnabled(true)
        supportActionBar?.title = "关于我们"
    }
    
    override fun onSupportNavigateUp(): Boolean {
        onBackPressed()
        return true
    }
}